from user import views
from django.urls import path

urlpatterns = [
    #登录页面
    path('', views.load, name='load'),
    #注册页面
    path('regitser', views.register, name='register'),

    #teahcer界面
    #学生信息
    path('teacher/show_student', views.showStu_tea, name="stu_information_tea"),
    path('teacher/add_student', views.addStu_tea, name="stu_add"),
    path('teacher/delete_student', views.deleteStu_tea, name="stu_delete"),
    #考试信息
    path('teacher/show_test', views.showTest_tea, name="test_information_tea"),
    path('teacher/add_test', views.addTest_tea, name="test_add"),
    path('teacher/delete_test', views.deleteTest_tea, name="test_delete"),
    #作业信息
    path('teacher/show_work', views.showWork_tea, name="work_information_tea"),
    path('teacher/add_work', views.addWork_tea, name="work_add"),
    path('teacher/delete_work', views.deleteWork_tea, name="work_delete"),
    #
    # #课程信息
    path('teacher/show_course', views.showCourse_tea, name="course_information_tea"),
    path('teacher/add_course', views.addCourse_tea, name="course_add"),
    path('teacher/delete_course', views.deleteCourse_tea, name="course_delete"),

    # student界面
    # 课程信息
    path('student/show_course', views.showCourse_stu, name="course_information_stu"),
    path('student/select_course', views.select_course_stu, name="course_select_stu"),
    path('student/select_course_cno', views.select_course_select, name="course_select_course_id"),
    path('student/delete_course_cno',views.delete_course_stu,name="course_delete_stu"),
    # # #学生作业信息
    path('student/work_information', views.student_work, name="work_information_stu"),
    # #学生考试信息
    path('student/test_information', views.student_test, name="test_information_stu"),
    # #学生笔记信息
    # path('student/note_information', views.select_note, name="note_information_stu"),
]
